/**
 * 
 * @authors Wang Guangzhou (wang6756@163.org)
 * @date    2016-11-07 11:32:51
 * @version $Id$
 */
var path = require('path');
var config = require('./server/config');
var webpack = require('webpack');
var merge = require('webpack-merge');
var baseWebpackConfig = require('./webpack.base.conf');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');

var env = config.build.env;

var webpackConfig = merge(baseWebpackConfig, {
  devtool: false,
  output: {
    path: config.build.assetsRoot,
    publicPath: '',
    filename: 'js/[name].js'
//    publicPath: ''
  },
  plugins: [
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: '"production"'
      }
    }),
  ]
});

module.exports = webpackConfig;
